<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
    <title>仓库分类管理</title>
    <th:block th:include="statics/common/page/header"></th:block>
</head>
<body>
<div id="rrapp" v-cloak>
    <div v-show="showList">
        <Row class="search-panel-space">
            <!-- <div class="buttons-group">
                <i-button type="info" @click="add" th:if="${@shiroAuthService.hasPermission('productClassify:save')}">
                    <i class="fa fa-plus"></i>&nbsp;新增
                </i-button>
                <i-button type="warning" @click="update" th:if="${@shiroAuthService.hasPermission('productClassify:update')}">
                    <i class="fa fa-pencil-square-o"></i>&nbsp;修改
                </i-button>
                <i-button type="error" @click="del" th:if="${@shiroAuthService.hasPermission('productClassify:delete')}">
                    <i class="fa fa-trash-o"></i>&nbsp;删除
                </i-button>
            </div> -->
        </Row>
        <table id="jqGrid"></table>
    </div>

    <Card v-show="!showList">
        <p slot="title" style="height: 35px;">{{title}}
            <i-button type="warning" @click="reload" style="margin-right: 8px;float: right;"/>
            返回</i-button></p>
        <i-form ref="formValidate" :model="productClassify" :rules="ruleValidate" :label-width="80">
            <row>
                <i-col span="8">
                    <Form-item label="分类名称" prop="name">
                        <i-input v-model="productClassify.name" placeholder="分类名称"/>
                    </Form-item>
                </i-col>
            </row>
            <row>
                <i-col span="8">
                    <Form-item label="上级分类" prop="parentId" style="display:none">
                        <i-input v-model="productClassify.parentId" placeholder="上级分类"  readonly="readonly"/>
                    </Form-item>
                </i-col>
            </row>
            <row>
                <i-col span="8">
                    <Form-item label="上级分类" prop="parentId">
                        <i-input v-model="productClassify.parentName" placeholder="上级分类" readonly="readonly"/>
                    </Form-item>
                </i-col>
            </row>
            <Form-item label="状态" prop="status">
                <Radio-group v-model="productClassify.status">
                    <Radio label="0">
                        <span>启用</span>
                    </Radio>
                    <Radio label="1">
                        <span>禁用</span>
                    </Radio>
                </Radio-group>
            </Form-item>
            <Form-item>
                <i-button type="primary" @click="handleSubmit('formValidate')">提交</i-button>
                <i-button type="ghost" v-show="reset" @click="handleReset('formValidate')" style="margin-left: 8px">重置</i-button>
            </Form-item>
        </i-form>
    </Card>
</div>
<script th:src="@{../statics/js/product/productClassify.js}"></script>
</body>
</html>